package cc.telecomdigital.tdstock.Http.Services;

import cc.telecomdigital.tdstock.Http.Services.H_SendTemplate.IH_GatewayResult;

/** Class result are promised not to be null, the worst case is to have
 * information string with length == 0
 */
public abstract class H_GatewayResult implements IH_GatewayResult
{
	/** Gateway error **/
	public String MError;
	public String MStatus;


	/** Constructor, init all parameter, ensure no null will be sent **/
	public H_GatewayResult()
	{
		MError  = "";
		MStatus = "";
	}

	/** Gateway error and errorString
	 * @param iMError
	 **/
	public void SetGateWayStatus(String iMStatusCode, String iMErrorMsg)
	{
		MError  = iMErrorMsg;
		MStatus = iMStatusCode;
	}
}
